import request from '@/utils/request'

// 分页查询会员卡
export function getPassCenterList(params) {
    return request({
        url: '/online/flypass/member-passes',
        method: 'get',
        params
    })
}

// 获取会员卡详情
export function getPassDetail(passInstanceId) {
    return request({
        url: `/online/flypass/member-pass/${passInstanceId}`,
        method: 'get'
    })
}

//获取会员数量
export function getMember() {
    return request({
        url: `/online/flypass/dashboard/member-pass/count`,
        method: 'get'
    })
}

//新增会员卡数统计图获取数据
export function getMemberPass(params) {
    return request({
        url: `/online/flypass/dashboard/member-pass/stat`,
        method: 'get',
        params
    })
}